<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Fake</title>
    <link href="css/bootstrap.css" rel="stylesheet">
</head>
<body>

    <div class="container" >
        <h2>收货列表</h2>

        <p>
            <a href="ADD_Address.html">
                <button class="btn btn-info" type="button">添加地址信息</button>
            </a>
        </p>

        <table class="table">
            <thead>

            <tr>
                <th>收货地址编号</th>  <th>收货详细地址</th>  <th>收货手机号</th>  <th>下单人</th>  <th>备注</th>  <th>收货人</th>  <th>操作</th>
            </tr>


            </thead>



            <tbody>

            </tbody>


        </table>



    </div>



</body>
<script src="js/jquery-3.2.1.js"></script>
<script src="js/layer/layer.js"></script>

<script>

    $(function () {
        selectAddress();
    })

    function selectAddress() {
        $.post('select_address',{},function (data) {
            $('tbody').empty();
            if (data.code==200){
                $.each(data.result,function (index,obj) {
                    var tr=$('<tr></tr>');
                    var td1=$('<td></td>').text(obj.addno);
                    var td2=$('<td></td>').text(obj.address);
                    var td3=$('<td></td>').text(obj.addphone);
                    var td4=$('<td></td>').text(obj.uno);
                    var td5=$('<td></td>').text(obj.remark);
                    var td6=$('<td></td>').text(obj.name);
                    tr.append(td1).append(td2).append(td3).append(td4).append(td5).append(td6);
                    $('tbody').append(tr);
                })
            }
        },"json")

    }


</script>
</html>